import Vue from 'vue'
import App from './App'
import router from './router'
import { vuex } from '../vuex/index'


import 'element-ui/lib/theme-chalk/index.css';
import element from './element/index'
//鼠标滚动警告 待解决
import 'default-passive-events'
import { InfiniteScroll } from 'element-ui';

// import { io } from "socket.io-client";
// const socket = new io("ws://localhost:3000"); //路径

// Vue.prototype.$socket = socket
Vue.use(InfiniteScroll)
Vue.use(element)


Vue.config.productionTip = false

new Vue({
    el: '#app',
    router,
    store: vuex,
    components: { App },
    template: '<App/>'
})